/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#include <mc/log.h>

#include "interface/network_adapter/log_collection.h"

namespace dev {

uint32_t NetworkAdapter_LogCollection::DumpErrorLog(mc::dict ctx, const std::string& file_path) {
    // TODO: create a task to dump error log
    // 1. get the log file path from the request
    // 2. read the log file
    // 3. return progress and result
    return 0; // return task id
}

uint32_t NetworkAdapter_LogCollection::DumpLastWordLog(mc::dict ctx, const std::string& file_path) {
    // TODO: create a task to dump last word log
    // 1. get the log file path from the request
    // 2. read the log file
    // 3. return progress and result
    return 0; // return task id
}

uint32_t NetworkAdapter_LogCollection::DumpRunningLog(mc::dict ctx, const std::string& file_path) {
    // TODO: create a task to dump running log
    // 1. get the log file path from the request
    // 2. read the log file
    // 3. return progress and result
    return 0; // return task id
}

uint32_t NetworkAdapter_LogCollection::DumpBlackBoxLog(mc::dict ctx, const std::string& file_path) {
    // TODO: create a task to dump black box log
    // 1. get the log file path from the request
    // 2. read the log file
    // 3. return progress and result
    return 0; // return task id
}

} // namespace dev

MC_REFLECT(dev::NetworkAdapter_LogCollection)